﻿<UserControl x:Class="KaKaSongGame.MiniMap2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <Storyboard x:Name="Storyboard1">
            <DoubleAnimationUsingKeyFrames
                Storyboard.TargetProperty="(UIElement.Opacity)"
                Storyboard.TargetName="newmapimg">
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <ControlTemplate x:Key="ButtonControlTemplate1" TargetType="Button">
        	<Grid>    
        		<Border BorderBrush="Gray" BorderThickness="1" CornerRadius="2" Padding="1" Width="16" Height="16">
				</Border>
				<TextBlock Text="q" Foreground="Gray" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Webdings"/>
        	</Grid>
        </ControlTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <Border Margin="0,5,5,0" CornerRadius="0,5,0,5" Padding="5"  BorderBrush="Silver" BorderThickness="1" Background="White">
            <Grid>
                <Grid Name="mappanel">
                    <Image HorizontalAlignment="Left" VerticalAlignment="Top" Name="mapimg"  Stretch="None"/>
                    <Image HorizontalAlignment="Left" VerticalAlignment="Top" Name="newmapimg" Stretch="None"/>
                    <Canvas Name="rectpanel">
                        <Rectangle StrokeThickness="1" Stroke="Blue" Name="mapwindowrect" Fill="#6B0033FF" Cursor="Hand"
                               MouseLeftButtonDown="mapwindowrect_MouseLeftButtonDown"
                               MouseMove="mapwindowrect_MouseMove"
                               MouseLeftButtonUp="mapwindowrect_MouseLeftButtonUp"/>
                    </Canvas>
                </Grid>
                <Button Content="o" HorizontalAlignment="Right" VerticalAlignment="Top" Click="minmax_click" Template="{StaticResource ButtonControlTemplate1}"/>
            </Grid>
        </Border>
    </Grid>
</UserControl>

